import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-1, 1, 20)
y = np.linspace(-1, 1, 20)
z = x ** 2 + y ** 2

ax = plt.subplot(111, projection="3d")
ax.plot(x, y, z, 'ro-')

plt.show()
